<template>
  <div>
    <el-container>
      <el-header style="background-color: #4a4c5b;height:70px;">
        <el-container style="height:100%">
          <el-aside
            style="display:flex;justify-content:flex-start;align-items:center;height:100%;width:300px"
          >
            <span style="font-size:25px;color:#fff;margin-left:20px">新职通机构端</span>
          </el-aside>
          <el-main style="display:flex;justify-content:flex-end;align-items:center;height:100%">
            <i class="iconfont icon1 pointer" style="font-size:25px;color:#fff" @click="goToFirst"></i>
            <span style="font-size:20px;color:#fff;margin-right:20px" class="pointer" @click="goToFirst">返回首页</span>
          </el-main>
        </el-container>
      </el-header>
      <el-main id="titleMainBox">
           <router-view></router-view>
      </el-main>
      <el-footer
        style="text-align: center;width: 100%;white-space: nowrap;color: #A7A7A7;font-size: 10px;line-height: 60px;"
      >
        <div>www. xinzhitong. com版权所有新职通一新时期务工人员转 型升级助推者备案号粤ICP备10054973号-5</div>
      </el-footer>
    </el-container>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {
    var body = document.getElementById("titleMainBox");
    console.log(body);
    var height = document.documentElement.clientHeight - 120;
    console.log(height.toString() + "px");
    if (height <= 700) height = 700;
    body.style.height = height.toString() + "px";
    console.log(body.style.height);
  },
  methods: {
     goToFirst(){
      window.location.href = "http://www.hangzhourunshi.cn/#/"
    },
  }
};
</script>
<style>
#titleMainBox {
  background-image: url(../../assets/login/loginbgi.jpg);
  background-size: cover;
}
</style>